package com.wmh.baseservice.merchant.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wmh.baseservice.merchant.pojo.MerchantVegetable;
import com.wmh.baseservice.common.mybatisplus.methods.CommonMapper;
import com.wmh.baseservice.user.pojo.vo.VegetableSearch;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author wmh generator
 * @since 2021-12-24
 */
public interface MerchantVegetableMapper extends CommonMapper<MerchantVegetable> {

    /**
     * 获取蔬菜列表（分页）
     * @param vegetablePage
     * @param map
     */
    IPage<MerchantVegetable> getVegetableList(Page<MerchantVegetable> vegetablePage, @Param("map") Map<String, Object> map);

    /**
     * 关键字搜索蔬菜列表（分页）
     * @return
     */
    IPage<VegetableSearch> search(Page<VegetableSearch> vegetablePage,Map<String, Object> map);
}
